package exemplo;

import java.util.Arrays;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.inject.Named;

@Named
@ManagedBean
public class MeuBean {

	private List<Bean> beans;
	private List<ColumnModel> colunas;
	public MeuBean() {
		setColunas(
				Arrays.asList(
						new ColumnModel("Nome", "nome"),
						new ColumnModel("Telefone", "telefone"),
						new ColumnModel("Idade", "idade")						
				)
		);
		setBeans(Arrays.asList(new Bean("Renato", 29), new Bean("Renata", 30), new Bean("Adriana", 26, "8132411969")));
	}


	public List<Bean> getBeans() {
		return beans;
	}

	public void setBeans(List<Bean> beans) {
		this.beans = beans;
	}


	public List<ColumnModel> getColunas() {
		return colunas;
	}


	public void setColunas(List<ColumnModel> colunas) {
		this.colunas = colunas;
	}
	
}
